Skip to content

fix(contract): retire helper import boundary exemptions - #627

Merged
V3RON merged 2 commits into
mainfrom
bug/445
Oct 16, 2026
Merged

V3RON merged 2 commits into
mainfrom
bug/445

Conversation

@V3RON

@V3RON V3RON commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes #445

What is this?

Retires the last grandfathered imports of the contract's OS range and duration helpers, so
every consumer of the contract is entered through its index and lint rejects a new reach-in.

How does it work?

src/contract/index.ts re-exports the two helpers; the seven consumers import them from that
index; the seven matching baseline exemptions are deleted, and the contract manual now names
the helpers in its entry line. Dynamic component discovery, helper behaviour, wire schemas and
all unrelated exemptions are untouched.

Why is this useful?

The boundary rule holds for the contract as it does for every other component, with no
exemptions left to carry forward.

  • Export the existing OS range and duration helpers through the contract index.
  • Route all seven helper consumers through the contract index and remove only their
    known-violation exemptions.
  • Correct the contract manual while preserving helper behavior, wire schemas, dynamic
    component discovery and unrelated exemptions.
  • Pass the carried-forward regression and existing boundary fixtures.

Status

Implement: done (red test carried from 7025f77, green at ab30214; src/lint-rules.test.ts
71/71 locally). Review: round 1, 0 src open. Hardware: n/a. Gate: running.
Next: merge through the gate.

Flake, not this diff: the Console check failed once on
e2e/console/workers.spec.ts route.fetch: connect ECONNREFUSED. The same test and the same
error reproduce on main (runs 38865837069, 38875647436) and a rerun at this head passed.
Recorded in #642 (flaky-test).

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: n/a.

All three passes ran at ab30214 with .agents/scripts/review-inputs.sh inputs; rules, ADRs
and briefs came from main. The sub-agent harness refused nested spawns at this depth, so
each pass was run in this session with a fresh reading of its brief rather than by a separate
.claude/agents reviewer. Code review probes (2 of the 9 allowed, tree restored): the repo-wide
regression goes red on one new contract/os-range.js reach-in, and the new fixture case goes
red when the generated past-index rules are removed, so both fail for the reason they claim.
No Fix lines, so no round 2.

Assumptions

Assumption: the carried-forward repo-wide scan gets a 60 s test timeout (src/lint-rules.test.ts),
the one change to the triage test after red; the scan runs in about 1.5 s alone, and the bound
only allows for concurrent unit runs. No assertion was loosened.

Written by an agent.

V3RON added 2 commits October 16, 2026 13:34
Prove the existing component guards and pin the remaining contract helper boundary breaches.
1 failing -> 0 failing. Retire the seven helper reach-in exemptions and align the contract manual with its surface. Bound the repository graph regression to 60 seconds for concurrent unit runs.
@V3RON
V3RON marked this pull request as ready for review October 16, 2026 18:26
@V3RON
V3RON merged commit ee631dc into main Oct 16, 2026
52 of 53 checks passed
@V3RON
V3RON deleted the bug/445 branch October 16, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lint does not enforce index.ts boundaries for cleanup/, routing/, warm-pool/ and contract/ helpers

1 participant